<template>
	<view class="modal">
		<view class="modal-bkg" />
		<view class="modal-pop">
			<view class="pop-main">
				<view class="title">
					本期活动已经结束<br/>
					敬请期待下期
				</view>
				<navigator class="next-btn" open-type="exit" target="miniProgram">退出小程序</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	import {mapState} from 'vuex'
	export default {
		computed:{
			...mapState(['userinfo'])
		},
		data() {
			return {
				douyinnum: null
			};
		},
		onLoad() {
			uni.hideTabBar()
		},
		methods: {
			close(){
				console.log('关闭了')
				uni.$emit('pop_close')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.modal{
		position: fixed;
		top: 0;
		z-index: 10001;
		.modal-bkg{
			position: fixed;
			top: 0;
			background-color: rgba(0,0,0,.5);
			width: 100vw;
			height: 100vh;
		}
		.modal-pop{
			position: absolute;
			top: calc(50vh - 146px);
			left: calc(50vw - 160px);
			width: 320px;
			height: 292px;
			background-image: url('@/static/index/img_modal_card_01@2x.png');
			background-size: 320px 292px;
			.close{
				position: absolute;
				top: -56px;
				right: 0;
				width: 72px;
				height: 56px;
				background: url('@/static/btn/btn_32_ghost_shadow_nor@2x.png');
				background-size: 72px 56px;
				display: flex;
				align-items: center;
				justify-content: center;
				img{
					width: 15px;
					height: 15px;
				}
			}
			.pop-main{
				width: 248px;
				margin: 26px auto;
				.title{
					width: 208px;
					margin: 120px auto 0;
					padding-bottom: 20px;
					color: #F82045;
					font-size: 16px;
					text-align: center;
					font-weight: 600;
				}
				.next-btn{
					width: 152px;
					height: 56px;
					margin: 22px auto 0;
					text-align: center;
					line-height: 56px;
					background: url('@/static/btn/btn_32_red_152_shadow_nor@2x.png');
					background-size: 152px 56px;
					background-repeat: no-repeat;
					color: #FFFFFF;
					font-weight: 500;
				}
			}
		}
	}
</style>
